package com.bops.service;

import java.util.List;

import com.bops.dal.information.dao.NewsInfoDAO;
import com.bops.dal.information.dataobject.NewsInfoDO;
import com.bops.dal.information.queryobject.NewsInfoQuery;

public class NewsInfoService {

	NewsInfoDAO newsInfoDAO;	
	
    public Integer insert(NewsInfoDO newsDO){
    	return newsInfoDAO.insert(newsDO);
    }

    public boolean update(NewsInfoDO newsDO){
    	return newsInfoDAO.update(newsDO);
    }


    public  NewsInfoDO getById(Integer id){
    	return newsInfoDAO.getById(id);
    }

    public List<NewsInfoDO> listNews(NewsInfoQuery query){
    	return newsInfoDAO.listNews(query);
    }

    public boolean delete(Integer id){
    	return newsInfoDAO.delete(id);
    }

	public void setNewsInfoDAO(NewsInfoDAO newsInfoDAO) {
		this.newsInfoDAO = newsInfoDAO;
	}
    
}
